<script setup lang="ts">
import { useExamStore } from "@/store/modules/exam";

const examStore = useExamStore();
</script>

<template>
  <div class="analysis">
    <div class="question my-5">
      <div class="is-flex">
        <span class="label">参考答案：</span>
        <span class="black mr-6">{{
          examStore.getCurrentQuestion.answer
        }}</span>
        <span class="label">你的答案：</span>
        <span class="green">{{ examStore.getCurrentQuestion.userAnswer }}</span>
      </div>
      <!-- <p>
        There is no evidence Chandarana violated Standard Ⅶ(B)-Reference to CFA
        Institute, the CFA Designation, and the CFA Program with regard to his
        being a CFA candidate.Specifically,Chandarana does not overstate his
        competency or imply he will achieve superior performance as a result of
        his CFA designation.It does appear, however, Chandarana did not act with
        out.
      </p> -->
    </div>
    <div class="question my-5">
      <p class="label">答案解析：</p>
      <p v-html="examStore.getCurrentQuestion.analysis"></p>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.analysis {
  width: 100%;
  height: 500px;
  border-radius: 30px;
  padding: 24px 30px;
  .title {
    display: flex;
    align-items: center;
    height: 24px;
    line-height: 1;
    margin-bottom: 0;
    &::before {
      content: "";
      display: inline-block;
      width: 6px;
      height: 14px;
      border-radius: 3px;
      background-color: #00CCCF;
      margin-right: 12px;
      margin-top: 2px;
    }
  }
  .question {
    font-family: Arial, Helvetica, sans-serif;
    .label {
      color: #999;
      font-weight: bold;
      &::before {
        content: "";
        display: inline-block;
        width: 4px;
        height: 10px;
        border-radius: 3px;
        background-color: #00CCCF;
        margin-right: 8px;
        margin-top: 3px;
      }
    }
    p {
      font-weight: normal;
      // 两端对齐
      // text-align: justify;
    }
  }
}
</style>
